package com.example.login.mapper;
import com.example.login.entity.User;
import com.example.login.entity.UserCourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User findByUsername(String userName);

    boolean deleteByUsername(String userName);

    void update(User existingUser);

    boolean deleteUser(String userName);

    void delete(User user);

    boolean editUser(String userName, String name, String major, String class_name, String password);

    int updateByPrimaryKeySelective(User login);

    public List<User> getUserInfo(String name, String major, String class_name, String studentNum);

    List<UserCourse> getStudentScore(String userName, String semester);



}
